package Month09.day0927;


import java.util.Arrays;

public class TestObject {
    public static void main(String[] args) {
       int[] a = {1,3,5,7,2,4,6};
       Arrays.sort(a);
       for(int i:a){
           System.out.print(i + " ");
       }
    }
}
 /*public static void print(Object o){
        if(o instanceof String){
            String s = (String)o;
            System.out.println(s.toUpperCase());
        }
        if(o instanceof int[]){
            int[] arr2 = (int[])o;
            Arrays.sort(arr2);
            for(int i: arr2){
                System.out.print(i + " ");
            }
        }
    }
*/
 /*String arr1 = "abcdefg";
        int[] arr2 = {2,3,1,6,8,4,5};
        print(arr1);
        print(arr2);
        TestObject o = new TestObject();
        System.out.println(o);
        System.out.println(o.toString());*/